package com.boco.pciv.service.sys.impl;

import com.boco.pciv.core.service.PcivBaseServiceImpl;
import com.boco.pciv.entity.sys.UserOnlineInfo;
import com.boco.pciv.mapper.sys.IUserOnlineMapper;
import com.boco.pciv.service.sys.IUserOnlineService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;


@Service
public class UserOnlineServiceImpl extends PcivBaseServiceImpl<IUserOnlineMapper,UserOnlineInfo,String> implements IUserOnlineService {
    //logger
    private static final Logger logger = LoggerFactory.getLogger(UserOnlineServiceImpl.class);

    @Override
    public Integer refresh(String userid) {
        return mapper.refresh(userid);
    }

    @Override
    public void deleteOverTime() {
        mapper.deleteOverTime();
    }

    @Override
    public Integer getOnlineCount() {
       return  mapper.conutAll();
    }
}
